[Documentation] Add virtual-hosted-style addressing to presigned URL documentation examples#4768
Merged
SamRemis merged 1 commit intoboto:developfrom Apr 20, 2026
Merged
Conversation
legacy global endpoint (bucket.s3.amazonaws.com), which returns errors
for S3 buckets in Regions launched after March 20, 2019.
Updated all three code examples (create_presigned_url,
create_presigned_url_expanded, create_presigned_post) to include
s3={'addressing_style': 'virtual'} in the Config, and updated the
recommendation text to mention virtual-hosted-style addressing.
SamRemis
approved these changes
Apr 20, 2026
aws-sdk-python-automation
added a commit
that referenced
this pull request
Apr 20, 2026
* release-1.42.92: Bumping version to 1.42.92 Add changelog entries from botocore Update presigned URL docs to include addressing style config (#4768)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Presigned URLs generated without
addressing_style='virtual'use the legacyglobal endpoint (
bucket.s3.amazonaws.com), which returnsSignatureDoesNotMatchorIllegalLocationConstraintExceptionerrors for S3buckets in newer Regions (e.g.,
eu-north-1,il-central-1).Changes
s3={'addressing_style': 'virtual'}to theConfigin all threecode examples:
create_presigned_url,create_presigned_url_expanded,and
create_presigned_postTesting